import request from '@/utils/request'

export function getCommentList() {
  return request({
    url: '/getCommentList',
    method: 'get'
  })
}

export function addComment(data) {
  return request({//仅能回复别人,所以只有children
    url: '/addCommentChildren',
    method: 'post',
    data
  })
}

export function delComment(id) {
  return request({
    url: '/delComment',
    method: 'post',
    params:{
      id
    }
  })
}

export function delCommentChildren(id) {
  return request({
    url: '/delCommentChildren',
    method: 'post',
    params:{
      id
    }
  })
}
